﻿@model Forest.Cat.Web.Models.JobHunting.SavedJobViewModel
@{
    var ajaxOptions = new AjaxOptions() { HttpMethod = "POST", OnBegin = "return checkLogin();", UpdateTargetId = "savedJobPart" + Model.JobId };
}
<span id="@("savedJobPart" + Model.JobId)">
    @if (Model.IsSaved) { 
        @Ajax.ActionLink("取消收藏", "DoSavedJob", new { id = Model.JobId, isDoSave = false }, ajaxOptions)
    }
    else { 
        @Ajax.ActionLink("收藏", "DoSavedJob", new { id = Model.JobId, isDoSave = true }, ajaxOptions)
    }
</span>

